You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > VectorInt Structure > VectorInt Methods > MaxMinIdx Method > VectorInt.MaxMinIdx Method (out int, out int, out int, out int, [In] int, [In] int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
VectorInt.MaxMinIdx Method (out int, out int, out int, out int, [In] int, [In] int)

Calculate minimum, maximum and their indices in one procedure call.

Syntax
C#
Visual Basic
public void MaxMinIdx(out int aMax, out int aMaxIdx, out int aMin, out int aMinIdx, [In] int Index, [In] int Len);
Parameters 
Description 
out int aMax 
Returns calling vector elements [Index..Index+Len-1] maximum value. 
out int aMaxIdx 
Returns calling vector maximum value index. 
out int aMin 
Returns calling vector elements [Index..Index+Len-1] minimum value. 
out int aMinIdx 
Returns calling vector minimum value index. 
[In] int Index 
The starting index at which to start the search. 
[In] int Len 
The number of elements to search starting from Index. 

An exception is raised if array borders are overrun/underrun.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!